GDK W32: Force correct mouse cursor for custom resize/move
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 27 Feb 2016 00:10:12 +0000 (00:10 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 3 Mar 2016 07:17:46 +0000 (07:17 +0000)
commit84ddc6aab1e0b498666c65a5283e1a0bdfa04599
tree89d684d560cb9796660b6ae8847038852bdb44cb
parent8ebc03a1d1be20c6c4c52192d3584a976e3530c4
GDK W32: Force correct mouse cursor for custom resize/move

* Explicitly grab the device, setting appropriate cursor on it.
* Fix gdk_device_virtual_set_window_cursor() to just set the
  cursor, without trying to check that mouse is over the given
  window. Also prevent it from immediately resetting cursor.
* Alse take into account things that happen in other parts of
  GDK - don't look for replacement cursor, GDK already did that,
  and don't create a default arrow cursor instead of NULL,
  GDK-W32 already did that up the stack as well.
  Warn about inappropriate cursor == NULL argument instead.

https://bugzilla.gnome.org/show_bug.cgi?id=762711
gdk/win32/gdkdevice-virtual.c
gdk/win32/gdkevents-win32.c
gdk/win32/gdkwindow-win32.c
gdk/win32/gdkwindow-win32.h